import Components from 'unplugin-vue-components/vite';
import { NaiveUiResolver, VueUseComponentsResolver } from 'unplugin-vue-components/resolvers';

export default (path: any) => {
  return Components({
    resolvers: [
      NaiveUiResolver(),
      VueUseComponentsResolver(),
    ],
    dts: path.resolve(__dirname, '../../types/components.d.ts'),
    extensions: ['vue', 'tsx'],
    deep: true,
  });
};
